package com.example.demo.day.config.learn.designBook.secondDay.part3;

import com.example.demo.day.config.learn.designBook.secondDay.part1.IBook;
import com.example.demo.day.config.learn.designBook.secondDay.part1.NovelBook;


//小说类的单元测试
public class NovelBookTest  {
    private String name = "平凡的世界";
    private int price = 6000;
    private String author = "路遥";

    private IBook novelBook = new NovelBook(name, price, author);

    //测试getPrice方法
    public void testGetPrice() {
        //原价销售，根据输入和输出的值是否相等进行断言
        //super.assertEquals(this.price, this.novelBook.getPrice());
        System.out.println(this.price == this.novelBook.getPrice());
    }
}
